package com.neu.mapper;

import com.neu.pojo.Fund;
import com.neu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface UserMapper {

    User getUserById(String openid);
    List<User> getAllUsers();
    int deleteUserById(String openid);
    int addUser(User user);
    int updatePreference(String openid,int preference);
    String getSessionKey(String openid);
    int updateSessionKey(String openid,String session_key);
    List<Fund> getFavouriteFund(String openid);
    int addFavouriteFund(String openid,String code);
    int deleteFavouriteFund(String openid,String code);

}
